package apk.cme.mm.interviewdemo.ui.activity

import android.os.Bundle
import apk.cme.mm.interviewdemo.R
import apk.cme.mm.interviewdemo.ex.onClick
import kotlinx.android.synthetic.main.activity_main.*
import org.jetbrains.anko.startActivity

class MainActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        initListener()
    }

    private fun initListener() {
        btn_loadFragment.onClick {
            startActivity<FragmentDemoActivity>()
        }
    }
}
